summaryrefslogtreecommitdiff
path: root/app/[lng]/evcp/(evcp)/(master-data)/docu-list-rule/[projectId]/layout.tsx
blob: 197c35b26b769285e165192d72bc1fc4120e63f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import { Metadata } from "next"
import { Separator } from "@/components/ui/separator"
import { SidebarNav } from "@/components/layout/sidebar-nav"
import { DynamicTitleClient } from "@/components/docu-list-rule/dynamic-title-client"

export const metadata: Metadata = {
  title: "Document Numbering Rule",
}

export default async function ProjectDocuListRuleLayout({
  children,
  params,
}: {
  children: React.ReactNode
  params: Promise<{ lng: string; projectId: string }>
}) {
  const { lng, projectId } = await params

  const sidebarNavItems = [
    {
      title: "Document Class 관리",
      href: `/${lng}/evcp/docu-list-rule/${projectId}/document-class`,
    },
    {
      title: "Code Group 정의",
      href: `/${lng}/evcp/docu-list-rule/${projectId}/code-groups`,
    },
    {
      title: "Combo Box 설정",
      href: `/${lng}/evcp/docu-list-rule/${projectId}/combo-box-settings`,
    },
    {
      title: "Number Type 관리",
      href: `/${lng}/evcp/docu-list-rule/${projectId}/number-types`,
    },
    {
      title: "Number Type별 설정",
      href: `/${lng}/evcp/docu-list-rule/${projectId}/number-type-configs`,
    },
  ]

  return (
    <>
          <div className="hidden space-y-6 p-5 pb-16 md:block">
            <DynamicTitleClient />
            
            <Separator className="my-6" />
            <div className="flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0">
              <aside className="-mx-4 lg:w-1/5">
                <SidebarNav items={sidebarNavItems} />
              </aside>
              <div className="flex-1 ">{children}</div>
            </div>
          </div>
  
   
    </>
  )
}